<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组，兼有数组，List,Map</title>
		<script>
		  var a=new Array(10);
		  a[0]="你好";
		  a[1]="香蕉";
		  a[2]=Math.PI;
		  a[100]="叙俊南";
		  alert(a.length);//?
		  alert(a.join("$"));
		  a[3]="小刘";
		  a.length=12;
		  alert(a.join("$"));
		  a["clsName"]="java75";
		  a["banzhang"]="雯子闻";
		  a["renshu"]=13;
		  a["location"]="第五机房";
		  alert(a.length);
		  alert("新数组："+a);
		  /*循环这个数组！*/
		  // for(var i=0;i<a.length;i++)
		  // {
			 //  document.write(a[i]+"&nbsp;");
		  // }
		  //alert(a["clsName"]);
		  for(var i in a){
			  document.write(i+"="+a[i]+"<br/>");
		  }
		</script>
	</head>
	<body>
	</body>
</html>
